package oop9;

/**
 * @author oldliu
 * @since 1.0
 */
public class Teacher {
    private String name;
    private int age;

    public Teacher(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void selfIntroduce(){
        System.out.println("我叫"+name+",今年"+age+"岁了");
    }
    public void giveLession(){
        System.out.println(name+"给学生上课");
        System.out.println("回顾，新知识点，总结，布置作业");
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
